package com.yuxi.Entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 信息渠道表
 * @author hunter
 * @version 1.0
 *  2016/07/15
 */

@Entity
@Table
public class InformationSource  implements Serializable{
	private int id;
	private String name;//信息渠道
	private String remark;//备注
	private int superId;
	private int level;
	
	
	
	public int getSuperId() {
		return superId;
	}
	public void setSuperId(int superId) {
		this.superId = superId;
	}
	public int getLevel() {
		return level;
	}
	public void setLevel(int level) {
		this.level = level;
	}
	@Id
	@GeneratedValue
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	@Column(length=20)
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	@Column(columnDefinition="text")
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public InformationSource() {
//		super();
	}
	public InformationSource(int id, String name, String remark, Information infomation) {
		super();
		this.id = id;
		this.name = name;
		this.remark = remark;
		
	}
	
	public InformationSource(String name, String remark, int superId, int level) {
//		super();
		this.name = name;
		this.remark = remark;
		this.superId = superId;
		this.level = level;
	}
	@Override
	public String toString() {
		return "InformationSource [id=" + id + ", name=" + name + ", remark=" + remark + ", superId=" + superId
				+ ", level=" + level + "]";
	}
	
	
}
